package com.ciwong.epaper.util;

/**
 * 登录错误码
 * Created by lqi on 2017/2/23.
 */
public class ErrorCodeConstants {

    public static final int  USER_PWD_ERROR =21; //用户密码相关错误
    public static final int  USER_INFO_ERROR=29;
    public static final int  PARAMS_TYPE_ERROR=15;//参数类型错误
    public static final int  CLIENT_INFO_ERROR=16; //client信息相关错误
    public static final int  BLACK_LIST_ERROR=24; //黑名单,禁止访问
    public static final int  WHITE_LIST_ERROR=25; //白名单,没有权限访问
    public static final int  TIME_OUT_ERROR=23; //接口请求超时错误
    public static final int  HAMC_SIGIN_ERROR=19;//hmac签名相关错误
    public static final int  REFRESH_TOKEN_ERROR=18; //refreshToken相关错误
    public static final int  ACCESS_TOKEN_ERROR=17; //AccessToken相关错误
    public static final int  SERVER_PERMISSION_ERROR=301; //permission
    public static final int  PARAMS_ERROR=202; //缺少必选参数
    public static final int  POST_PARAMS_TYPE_ERROR=201; //参数类型不正确
    public static final int  SERVER_STOP_ERROR=101; //服务禁用


//    public static String getErrorMsg(Context context,int errcode,String msg){
//        switch (errcode){
//            case USER_PWD_ERROR:
//            case USER_INFO_ERROR:
//            case EConstants.LOGIN_ERROR_CODE_ACCOUNT_ERROR:
//            case EConstants.LOGIN_ERROR_CODE_PWD_ERROR_SPECIAL:
//            case EConstants.LOGIN_ERROR_CODE_PWD_ERROR:
//                return context.getString(R.string.login_error_password);
//            default:
//                return msg;
//        }
//    }
 }
